import React from 'react'
import Item from '../Item/Item'
import './index.css'
export default function List({todos}) {
    return (
        <ul className="todo-main">
          {todos.map(todo=>(<Item key={todo.id} todo={todo}/>)) }
        </ul>
    )
}
